<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<f:view locale="#{frameBean.locale}">
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css"
			href="${facesContext.externalContext.requestContextPath}/css/style.css" />
		<title><ui:insert name="title">Car Rent Inc</ui:insert></title>
	</h:head>
	<h:body>
		<h:form>
			<h:panelGrid columns="2">
				<h1>Language :</h1>
				<h:selectOneMenu value="#{frameBean.language}" onchange="submit()">
					<f:selectItem itemValue="en" itemLabel="English" />
					<f:selectItem itemValue="ru" itemLabel="Русский" />
				</h:selectOneMenu>
			</h:panelGrid>
		</h:form>
		<h:outputText value="#{msg['logged_as']} " />
		<h:outputText value="${loggedClientBean.client}" />
		<br />
		<h:form>
			<p:tabMenu activeIndex="#{activeIndex}"
				style="width: 1100px; margin: 0 auto; align: center">
				<p:menuitem value="#{msg['manage_bills']}"
					url="/client/manage_bills.xhtml" />
				<p:menuitem value="#{msg['make_new_request']}"
					url="/client/new_request.xhtml" />
				<p:menuitem value="#{msg['closed_requests']}"
					url="/client/closed_requests.xhtml" />
				<p:menuitem value="#{msg['manage_new_requests']}"
					url="/manager/manage_new_requests.xhtml" />
				<p:menuitem value="#{msg['manage_active_requests']}"
					url="/manager/manage_active_requests.xhtml" />
				<p:menuitem value="#{msg['all_closed_requests']}"
					url="/manager/manage_closed_requests.xhtml" />
				<p:menuitem value="#{msg['register']}" url="/register.xhtml" />
				<p:menuitem value="#{msg['logout']}" url="/logout.xhtml" />
			</p:tabMenu>
		</h:form>
		<ui:insert name="page" />
	</h:body>
</f:view>
</html>
